/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package xml_parser.Parseador;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;

/**
 *
 * @author Vedder
 */
public class Constructor {

    private File xmlFile;


    public Constructor() {
    }


    public File getXmlFile() {
        return xmlFile;
    }

    public void setXmlFile(File xmlFile) {
        this.xmlFile = xmlFile;
    }

    public Documento armarDocumento() {
        Documento documento = new Documento(recuperarRaiz(), recuperarVersion(), recuperarDtd());
        return documento;
    }

    private Elemento recuperarRaiz() throws FileNotFoundException {
        BufferedReader br = abrirBufferEntrada();
        
    }

    private BufferedReader abrirBufferEntrada() throws FileNotFoundException {
        FileReader fr = new FileReader(xmlFile);
        BufferedReader br = new BufferedReader(fr);
        return br;
    }
}
